<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>单页面应用</title>
    <script src="layui/layui.js"></script>
    <script>
        // 配置
        layui.config({
            base: "model/",
        }).use(["app"], function () {
            var { app } = layui.app

            //渲染
            app.render({
                css: ["layui/css/layui.css"], //全局样式
                page: "page"
            })
        })
    </script>
</head>

<body>
    <main-view></main-view>
</body>

</html>